{
 "metadata": {
  "name": "",
  "signature": "sha256:1f0175901effd47c5abc5953191c9de97bc8c3943688294cf4bb4620279aaf03"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import pandas as pd\n",
      "import numpy as np"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 4
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "data = pd.read_csv(\"train.csv\")\n",
      "label = data.iloc[:, 0]\n",
      "feature = data.iloc[:, 1:]\n",
      "label.to_csv('label.csv', index=False, header=False)\n",
      "feature.to_csv('feature.csv', index=False, header=False)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 9
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "feature"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "html": [
        "<div style=\"max-width:1500px;overflow:auto;\">\n",
        "<style scoped>\n",
        "    .dataframe tbody tr th:only-of-type {\n",
        "        vertical-align: middle;\n",
        "    }\n",
        "\n",
        "    .dataframe tbody tr th {\n",
        "        vertical-align: top;\n",
        "    }\n",
        "\n",
        "    .dataframe thead th {\n",
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
        "<table border=\"1\" class=\"dataframe\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
        "      <th>feature</th>\n",
        "    </tr>\n",
        "  </thead>\n",
        "  <tbody>\n",
        "    <tr>\n",
        "      <th>0</th>\n",
        "      <td>70 80 82 72 58 58 60 63 54 58 60 48 89 115 121...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>1</th>\n",
        "      <td>151 150 147 155 148 133 111 140 170 174 182 15...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>2</th>\n",
        "      <td>231 212 156 164 174 138 161 173 182 200 106 38...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>3</th>\n",
        "      <td>24 32 36 30 32 23 19 20 30 41 21 22 32 34 21 1...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>4</th>\n",
        "      <td>4 0 0 0 0 0 0 0 0 0 0 0 3 15 23 28 48 50 58 84...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>5</th>\n",
        "      <td>55 55 55 55 55 54 60 68 54 85 151 163 170 179 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>6</th>\n",
        "      <td>20 17 19 21 25 38 42 42 46 54 56 62 63 66 82 1...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>7</th>\n",
        "      <td>77 78 79 79 78 75 60 55 47 48 58 73 77 79 57 5...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>8</th>\n",
        "      <td>85 84 90 121 101 102 133 153 153 169 177 189 1...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>9</th>\n",
        "      <td>255 254 255 254 254 179 122 107 95 124 149 150...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>10</th>\n",
        "      <td>30 24 21 23 25 25 49 67 84 103 120 125 130 139...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>11</th>\n",
        "      <td>39 75 78 58 58 45 49 48 103 156 81 45 41 38 49...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>12</th>\n",
        "      <td>219 213 206 202 209 217 216 215 219 218 223 23...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>13</th>\n",
        "      <td>148 144 130 129 119 122 129 131 139 153 140 12...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>14</th>\n",
        "      <td>4 2 13 41 56 62 67 87 95 62 65 70 80 107 127 1...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>15</th>\n",
        "      <td>107 107 109 109 109 109 110 101 123 140 144 14...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>16</th>\n",
        "      <td>14 14 18 28 27 22 21 30 42 61 77 86 88 95 100 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>17</th>\n",
        "      <td>255 255 255 255 255 255 255 255 255 255 255 25...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>18</th>\n",
        "      <td>134 124 167 180 197 194 203 210 204 203 209 20...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>19</th>\n",
        "      <td>219 192 179 148 208 254 192 98 121 103 145 185...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>20</th>\n",
        "      <td>1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 7 12 23 45 38 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>21</th>\n",
        "      <td>174 51 37 37 38 41 22 25 22 24 35 51 70 83 98 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>22</th>\n",
        "      <td>123 125 124 142 209 226 234 236 231 232 235 22...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>23</th>\n",
        "      <td>8 9 14 21 26 32 37 46 52 62 72 70 71 73 76 83 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>24</th>\n",
        "      <td>252 250 246 229 182 140 98 72 53 44 67 95 95 8...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>25</th>\n",
        "      <td>224 227 219 217 215 210 187 177 189 200 206 21...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>26</th>\n",
        "      <td>162 200 187 180 197 198 196 192 176 152 136 11...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>27</th>\n",
        "      <td>236 230 225 226 228 209 199 193 196 211 199 19...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28</th>\n",
        "      <td>210 210 210 210 211 207 147 103 68 60 47 70 12...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>29</th>\n",
        "      <td>50 44 74 141 187 187 169 113 80 128 181 172 76...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>...</th>\n",
        "      <td>...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28679</th>\n",
        "      <td>39 39 39 39 38 30 41 63 105 117 84 97 101 75 5...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28680</th>\n",
        "      <td>137 146 153 157 164 166 169 172 177 176 176 17...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28681</th>\n",
        "      <td>208 207 205 206 207 207 210 211 210 207 211 21...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28682</th>\n",
        "      <td>10 10 10 10 10 10 10 10 10 10 12 2 45 117 122 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28683</th>\n",
        "      <td>178 142 131 130 145 152 125 92 115 142 149 158...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28684</th>\n",
        "      <td>80 94 86 71 98 74 46 67 105 71 63 76 51 53 80 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28685</th>\n",
        "      <td>94 92 91 92 93 93 92 92 90 90 61 41 34 37 52 6...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28686</th>\n",
        "      <td>178 184 187 195 199 194 197 205 202 194 201 20...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28687</th>\n",
        "      <td>114 100 121 166 185 175 160 174 195 205 216 22...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28688</th>\n",
        "      <td>30 47 52 25 29 48 46 41 70 63 66 49 37 41 35 3...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28689</th>\n",
        "      <td>181 178 179 171 78 51 56 46 48 50 54 54 68 96 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28690</th>\n",
        "      <td>186 182 173 164 164 177 91 45 66 72 79 79 85 1...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28691</th>\n",
        "      <td>255 255 255 255 255 255 255 255 255 255 255 25...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28692</th>\n",
        "      <td>99 103 106 109 112 113 115 118 120 121 115 83 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28693</th>\n",
        "      <td>216 219 216 209 181 104 128 129 134 136 135 14...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28694</th>\n",
        "      <td>159 195 167 158 152 150 149 154 154 151 149 14...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28695</th>\n",
        "      <td>84 96 110 132 165 183 175 154 116 95 75 67 63 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28696</th>\n",
        "      <td>0 0 1 1 7 35 76 87 86 90 87 83 89 92 92 93 98 ...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28697</th>\n",
        "      <td>181 172 161 144 116 109 70 109 187 131 67 30 2...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28698</th>\n",
        "      <td>35 45 69 79 75 48 45 35 56 93 71 51 48 47 46 4...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28699</th>\n",
        "      <td>128 134 164 94 70 114 159 138 75 47 89 127 134...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28700</th>\n",
        "      <td>11 10 12 13 9 11 10 11 11 10 10 13 11 10 11 10...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28701</th>\n",
        "      <td>34 42 47 34 53 41 33 39 42 38 40 44 41 42 42 4...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28702</th>\n",
        "      <td>196 194 188 177 156 124 81 60 65 64 84 119 114...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28703</th>\n",
        "      <td>255 255 255 255 255 255 255 203 145 147 143 14...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28704</th>\n",
        "      <td>84 85 85 85 85 85 85 85 86 86 86 87 86 86 91 9...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28705</th>\n",
        "      <td>114 112 113 113 111 111 112 113 115 113 114 11...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28706</th>\n",
        "      <td>74 81 87 89 95 100 98 93 105 120 127 133 146 1...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28707</th>\n",
        "      <td>222 227 203 90 86 90 84 77 94 87 99 119 134 14...</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>28708</th>\n",
        "      <td>195 199 205 206 205 203 206 209 208 210 212 21...</td>\n",
        "    </tr>\n",
        "  </tbody>\n",
        "</table>\n",
        "<p>28709 rows \u00d7 1 columns</p>\n",
        "</div>"
       ],
       "metadata": {},
       "output_type": "pyout",
       "prompt_number": 8,
       "text": [
        "                                                 feature\n",
        "0      70 80 82 72 58 58 60 63 54 58 60 48 89 115 121...\n",
        "1      151 150 147 155 148 133 111 140 170 174 182 15...\n",
        "2      231 212 156 164 174 138 161 173 182 200 106 38...\n",
        "3      24 32 36 30 32 23 19 20 30 41 21 22 32 34 21 1...\n",
        "4      4 0 0 0 0 0 0 0 0 0 0 0 3 15 23 28 48 50 58 84...\n",
        "5      55 55 55 55 55 54 60 68 54 85 151 163 170 179 ...\n",
        "6      20 17 19 21 25 38 42 42 46 54 56 62 63 66 82 1...\n",
        "7      77 78 79 79 78 75 60 55 47 48 58 73 77 79 57 5...\n",
        "8      85 84 90 121 101 102 133 153 153 169 177 189 1...\n",
        "9      255 254 255 254 254 179 122 107 95 124 149 150...\n",
        "10     30 24 21 23 25 25 49 67 84 103 120 125 130 139...\n",
        "11     39 75 78 58 58 45 49 48 103 156 81 45 41 38 49...\n",
        "12     219 213 206 202 209 217 216 215 219 218 223 23...\n",
        "13     148 144 130 129 119 122 129 131 139 153 140 12...\n",
        "14     4 2 13 41 56 62 67 87 95 62 65 70 80 107 127 1...\n",
        "15     107 107 109 109 109 109 110 101 123 140 144 14...\n",
        "16     14 14 18 28 27 22 21 30 42 61 77 86 88 95 100 ...\n",
        "17     255 255 255 255 255 255 255 255 255 255 255 25...\n",
        "18     134 124 167 180 197 194 203 210 204 203 209 20...\n",
        "19     219 192 179 148 208 254 192 98 121 103 145 185...\n",
        "20     1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 7 12 23 45 38 ...\n",
        "21     174 51 37 37 38 41 22 25 22 24 35 51 70 83 98 ...\n",
        "22     123 125 124 142 209 226 234 236 231 232 235 22...\n",
        "23     8 9 14 21 26 32 37 46 52 62 72 70 71 73 76 83 ...\n",
        "24     252 250 246 229 182 140 98 72 53 44 67 95 95 8...\n",
        "25     224 227 219 217 215 210 187 177 189 200 206 21...\n",
        "26     162 200 187 180 197 198 196 192 176 152 136 11...\n",
        "27     236 230 225 226 228 209 199 193 196 211 199 19...\n",
        "28     210 210 210 210 211 207 147 103 68 60 47 70 12...\n",
        "29     50 44 74 141 187 187 169 113 80 128 181 172 76...\n",
        "...                                                  ...\n",
        "28679  39 39 39 39 38 30 41 63 105 117 84 97 101 75 5...\n",
        "28680  137 146 153 157 164 166 169 172 177 176 176 17...\n",
        "28681  208 207 205 206 207 207 210 211 210 207 211 21...\n",
        "28682  10 10 10 10 10 10 10 10 10 10 12 2 45 117 122 ...\n",
        "28683  178 142 131 130 145 152 125 92 115 142 149 158...\n",
        "28684  80 94 86 71 98 74 46 67 105 71 63 76 51 53 80 ...\n",
        "28685  94 92 91 92 93 93 92 92 90 90 61 41 34 37 52 6...\n",
        "28686  178 184 187 195 199 194 197 205 202 194 201 20...\n",
        "28687  114 100 121 166 185 175 160 174 195 205 216 22...\n",
        "28688  30 47 52 25 29 48 46 41 70 63 66 49 37 41 35 3...\n",
        "28689  181 178 179 171 78 51 56 46 48 50 54 54 68 96 ...\n",
        "28690  186 182 173 164 164 177 91 45 66 72 79 79 85 1...\n",
        "28691  255 255 255 255 255 255 255 255 255 255 255 25...\n",
        "28692  99 103 106 109 112 113 115 118 120 121 115 83 ...\n",
        "28693  216 219 216 209 181 104 128 129 134 136 135 14...\n",
        "28694  159 195 167 158 152 150 149 154 154 151 149 14...\n",
        "28695  84 96 110 132 165 183 175 154 116 95 75 67 63 ...\n",
        "28696  0 0 1 1 7 35 76 87 86 90 87 83 89 92 92 93 98 ...\n",
        "28697  181 172 161 144 116 109 70 109 187 131 67 30 2...\n",
        "28698  35 45 69 79 75 48 45 35 56 93 71 51 48 47 46 4...\n",
        "28699  128 134 164 94 70 114 159 138 75 47 89 127 134...\n",
        "28700  11 10 12 13 9 11 10 11 11 10 10 13 11 10 11 10...\n",
        "28701  34 42 47 34 53 41 33 39 42 38 40 44 41 42 42 4...\n",
        "28702  196 194 188 177 156 124 81 60 65 64 84 119 114...\n",
        "28703  255 255 255 255 255 255 255 203 145 147 143 14...\n",
        "28704  84 85 85 85 85 85 85 85 86 86 86 87 86 86 91 9...\n",
        "28705  114 112 113 113 111 111 112 113 115 113 114 11...\n",
        "28706  74 81 87 89 95 100 98 93 105 120 127 133 146 1...\n",
        "28707  222 227 203 90 86 90 84 77 94 87 99 119 134 14...\n",
        "28708  195 199 205 206 205 203 206 209 208 210 212 21...\n",
        "\n",
        "[28709 rows x 1 columns]"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "feature.columns = np.array(range(48*48))"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "ename": "ValueError",
       "evalue": "Length mismatch: Expected axis has 1 elements, new values have 2304 elements",
       "output_type": "pyerr",
       "traceback": [
        "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mValueError\u001b[0m                                Traceback (most recent call last)",
        "\u001b[0;32m<ipython-input-10-7979837dfa9b>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mfeature\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcolumns\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrange\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m48\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0;36m48\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
        "\u001b[0;32m/usr/local/lib/python3.5/dist-packages/pandas/core/generic.py\u001b[0m in \u001b[0;36m__setattr__\u001b[0;34m(self, name, value)\u001b[0m\n\u001b[1;32m   3625\u001b[0m         \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m   3626\u001b[0m             \u001b[0mobject\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__getattribute__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3627\u001b[0;31m             \u001b[0;32mreturn\u001b[0m \u001b[0mobject\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__setattr__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mname\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m   3628\u001b[0m         \u001b[0;32mexcept\u001b[0m \u001b[0mAttributeError\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m   3629\u001b[0m             \u001b[0;32mpass\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
        "\u001b[0;32m/usr/local/lib/python3.5/dist-packages/pandas/_libs/properties.cpython-35m-x86_64-linux-gnu.so\u001b[0m in \u001b[0;36mpandas._libs.properties.AxisProperty.__set__\u001b[0;34m()\u001b[0m\n",
        "\u001b[0;32m/usr/local/lib/python3.5/dist-packages/pandas/core/generic.py\u001b[0m in \u001b[0;36m_set_axis\u001b[0;34m(self, axis, labels)\u001b[0m\n\u001b[1;32m    557\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    558\u001b[0m     \u001b[0;32mdef\u001b[0m \u001b[0m_set_axis\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maxis\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlabels\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 559\u001b[0;31m         \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_data\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset_axis\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0maxis\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlabels\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    560\u001b[0m         \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_clear_item_cache\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    561\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
        "\u001b[0;32m/usr/local/lib/python3.5/dist-packages/pandas/core/internals.py\u001b[0m in \u001b[0;36mset_axis\u001b[0;34m(self, axis, new_labels)\u001b[0m\n\u001b[1;32m   3067\u001b[0m             raise ValueError('Length mismatch: Expected axis has %d elements, '\n\u001b[1;32m   3068\u001b[0m                              \u001b[0;34m'new values have %d elements'\u001b[0m \u001b[0;34m%\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3069\u001b[0;31m                              (old_len, new_len))\n\u001b[0m\u001b[1;32m   3070\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m   3071\u001b[0m         \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maxes\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0maxis\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnew_labels\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
        "\u001b[0;31mValueError\u001b[0m: Length mismatch: Expected axis has 1 elements, new values have 2304 elements"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}